package com.doit.demo02;

public class test02 {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("========");
                System.out.println(Thread.currentThread().getName());
            }
        }).start();
        new Thread()
        {
            @Override
            public void run() {
                System.out.println("???");
                System.out.println(Thread.currentThread().getName());
            }
        }.start();
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("要多吃");
                System.out.println(Thread.currentThread().getName());
            }
        });
        t.start();

        Runnable r =new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("!!!!!!!!!");
                System.out.println(Thread.currentThread().getName());
            }
        });
        new Thread(r).start();

    }
}
